package a11_adapter;

/**
 * 对象适配器
 *
 */
public class Battery220To5Adapter implements V5Battery {
	private V220Battery v220Battery;

	public Battery220To5Adapter(V220Battery v220Battery) {
		this.v220Battery = v220Battery;
	}

	@Override
	public void provide5VEnergy() {
		System.out.println("转换器转换电源220v-5v");
		v220Battery.provide220VEnergy();
		System.out.println("转换结束");
	}

}
